package dao

import (
	"gold_task/db"
	"gold_task/db/model"

	log "github.com/sirupsen/logrus"
)

func GetHandleRecordList() (res []model.HandleRecord, err error) {
	err = db.Get().Find(&res).Error
	if err != nil {
		log.Warnf("error is %v", err)
	}
	return
}
func AddHandleRecord(r *model.HandleRecord) (err error) {
	err = db.Get().Create(r).Error
	if err != nil {
		log.Warnf("error is %v", err)
	}
	return
}
